<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page language="java" pageEncoding="utf-8" %>
<!DOCTYPE html>
<html lang="zh-CN">
<head>
    <meta charset="utf-8">
    <title>图书管理系统Ver1.0 - 显示图书信息</title>
    <link rel="stylesheet" href="css/index.css?ver=20170712">
</head>
<body>
<table class="book">
    <caption>图片信息管理</caption>
    <tr>
        <th>编号</th>
        <th>书籍名称</th>
        <th>价格</th>
        <th>基本操作</th>
    </tr>
    <c:forEach items="${books}" var="book">
        <tr>
            <td>${book.id}</td>
            <td>${book.name}</td>
            <td>${book.price}</td>
            <td><a href="del?id=${book.id}" onclick="return confirm('是不是要删除：${book.name}？')">删除</a></td>
        </tr>
    </c:forEach>
    <tr>
        <td colspan="100">
            <a href="add">添加新书籍</a>
        </td>
    </tr>
</table>
</body>
</html>
